package org.shaka.db.sqlbuilder.tables;

import java.util.Arrays;
import java.util.List;

import org.shaka.db.sqlbuilder.component.Column;
import org.shaka.db.sqlbuilder.component.Table;

public class UserUnitRole extends Table {
    public static final Column userId = new Column("user_id");
    public static final Column unitId = new Column("unit_id");
    public static final Column roleId = new Column("role_id");
    public static final Column expireDate = new Column("expire_date");

    public static final UserUnitRole table = new UserUnitRole();

    private UserUnitRole() {
        super(null, "user_unit_role");
    }

    @Override
    public List<Column> primaryKeys() {
        return Arrays.asList(userId, unitId, roleId);
    }

    @Override
    public List<Column> columns() {
        return Arrays.asList(userId, unitId, roleId, expireDate);
    }

}
